/**
 * Created by asus on 2017/5/5.
 */
import actions from './action'
import mutations from './mutation'

let state = {
  totalCount: 0,
  currentPage: 1,
  webNews: [],
  searchText: '',
  websiteList: [],
  wsCurrentPage: 1,
  wsTotalCount: 0
}


const getters = {
  getWebNews: state => state.webNews,
  getWebNewsCurrentPage: state => state.currentPage,
  getWebNewsTotalCount: state => state.totalCount,
  getWebNewsSearchText: state => state.searchText,
  getWebsiteList: state => state.websiteList,
  getWsCurrentPage: state => state.wsCurrentPage,
  getWsTotalCount: state => state.wsTotalCount
}

export default {
  state,
  getters,
  actions,
  mutations
};
